import request from "@/utils/request";
export default {
  saveVideoInfo(videoInfo) {
    return request({
      url: `/eduservice/edu-video`,
      method: "post",
      data: videoInfo
    });
  },
  getVideoInfoById(id) {
    return request({
      url: `/eduservice/edu-video/${id}`,
      method: "get"
    });
  },
  updateVideoInfoById(videoInfo) {
    return request({
      url: `/eduservice/edu-video/${videoInfo.id}`,
      method: "put",
      data: videoInfo
    });
  },
  removeById(id) {
    return request({
      url: `/eduservice/edu-video/${id}`,
      method: "delete"
    });
  }
};
